package com.learning.platform.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class QnAAnswerRequest {
    @NotNull(message = "帖子ID不能为空")
    private Long postId;

    @NotBlank(message = "回答内容不能为空")
    @Size(min = 10, max = 5000, message = "回答内容长度应在10-5000个字符之间")
    private String content;

    // Constructors
    public QnAAnswerRequest() {}

    // Getters and Setters
    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}

